/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tencent.tendon.convert.json.listeners;

import com.tencent.tendon.convert.json.*;

/**
 *
 * @author nbzhang
 */
public final class JsonCharListener extends JsonAbstractListener<Character> {

    private static final JsonCharListener instance = new JsonCharListener();

    private JsonCharListener() {
    }

    public static JsonCharListener getInstance() {
        return instance;
    }

    @Override
    public void convertTo(final JsonWriter out, final Character value) {
        convertCharTo(out, value);
    }

    @Override
    public final Character convertFrom(final JsonReader in) {
        return convertCharFrom(in);
    }

    @Override
    public Class<Character> getType() {
        return Character.class;
    }
}
